package com.yihusitian.zsxq.sg.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * @Description 数据源配置信息
 * @Author LeeHo
 * @Date 2020/8/26 14:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement(name = "datasource")
public class DatasourceInfo {
    @XmlAttribute
    private String jdbcUrl;

    @XmlAttribute
    private String user;

    @XmlAttribute
    private String password;

    @XmlTransient
    public String getJdbcUrl() {
        return jdbcUrl;
    }

    @XmlTransient
    public String getUser() {
        return user;
    }

    @XmlTransient
    public String getPassword() {
        return password;
    }
}